package com.fmdj.bff.driver.feign;

import com.fmdj.bff.driver.controller.form.RemoveLocationCacheForm;
import com.fmdj.bff.driver.controller.form.UpdateLocationCacheForm;
import com.fmdj.bff.driver.controller.form.UpdateOrderLocationCacheForm;
import com.fmdj.common.util.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "fmdj-mps")
public interface MapServiceApi {

    @PostMapping("/driver/position/updatePositionCache")
    CommonResult updatePositionCache(UpdateLocationCacheForm form);

    @PostMapping("/driver/position/removePositionCache")
    CommonResult removePositionCache(RemoveLocationCacheForm form);

    @PostMapping("/driver/position/updateOrderPositionCache")
    CommonResult updateOrderPositionCache(UpdateOrderLocationCacheForm form);
}
